<template>
  <div class="benefit-commend">
    <nav-bar>
      <div class="center" slot="center">推荐有奖</div>
    </nav-bar>
    <img src="~assets/img/profile/activity.png" alt="" />
    <ul class="invitation-link" @click="handleInvitationLink">
      <li>
        <img src="~assets/img/profile/weixin.png" alt="" />
        <span>邀请微信好友</span>
      </li>
      <li>
        <img src="~assets/img/profile/qq.png" alt="" />
        <span>邀请QQ好友</span>
      </li>
      <li>
        <img src="~assets/img/profile/fenxiang.png" alt="" />
        <span>面对面邀请</span>
      </li>
    </ul>
    <div class="profit">
      <div class="top">
        <div class="left">
          <p>累计收益</p>
          <p><span class="money">0</span>元</p>
        </div>
        <div class="right">
          <p>成功邀请</p>
          <p><span class="number">0</span>人</p>
        </div>
      </div>
      <div class="center">
        <p class="detailed">-收益明细-</p>
        <img src="~assets/img/profile/qianbao.png" alt="" />
        <p class="tips">还不赶紧去邀请好友</p>
      </div>
    </div>
  </div>
</template>

<script>
import NavBar from "components/common/navbar/NavBar";
export default {
  methods: {
    handleInvitationLink() {
      this.$toast.handleTipsText('请在饿了么APP中打开')
    }
  },
  components: {
    NavBar,
  },
};
</script>
<style lang="less" scoped>
.benefit-commend {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: #f5f5f5;
  font-size: 12px;
  img {
    width: 100%;
    margin-bottom: 5px;
  }
  .invitation-link {
    display: flex;
    padding: 20px 0;
    background-color: #fff;
    li {
      width: 33.33%;
      text-align: center;
      color: #555553;
      img {
        width: 50px;
      }
      span {
        display: block;
      }
    }
  }
  .profit {
    padding: 20px;
    text-align: center;
    .top {
      display: flex;
      justify-content: space-around;
      div {
        width: 50%;
      }
      .left {
        border-right: 2px solid #e6e6e6;
      }
      .money,
      .number {
        font-weight: 900;
        font-size: 20px;
      }
      .money {
        color: #ff5633;
      }
      .left p:nth-child(1),
      .right p:nth-child(1) {
        margin-bottom: 5px;
      }
    }
    .center {
      img {
        width: 30px;
      }
      .detailed {
        margin: 30px 0;
      }
      .tips {
        margin-top: 5px;
        color: #c0a599;
      }
    }
  }
}
</style>